/*
# File    :   intger.c
# Author  :   SCHIPS
# Mail    :   schips@dingtalk.com
# Date    :   Fri, May 24, 2019  9:33:39 PM
*/


//向下取整：
int floor(double x)
{
    return (int) x - (x< 0);
}

//向上取整：

int ceil(double x)
{
    return (int) x + (x> 0);
}

//四舍五入：
int round(double x)
{
    return floor(x+0.5);
}
